package com.fcg.redis.rediscommon.bean;

import lombok.Builder;
import lombok.Data;

/**
 * @author FCG
 */
@Data
@Builder
public class ResponseBean {
    private Boolean success = true;
    private String code = "10000";
    private String msg = "OK";
    private Object body;
    private Integer total;

    public ResponseBean() {
    }

    public ResponseBean(Object body) {
        this.body = body;
    }

    public ResponseBean(Boolean success, String code, String msg, Object body, Integer total) {
        this.success = success;
        this.code = code;
        this.msg = msg;
        this.body = body;
        this.total = total;
    }
}
